package question2;

public class MyException {
    public static void main(String[] args) {
        Student student = new Student();
        student.setName("chuange");
        try {
            student.setAge(28);
            student.setSex("nan");
        } catch (AgeException e) {
            e.printStackTrace();
        } catch (SexException e){
            e.printStackTrace();
        }
    }
}
